<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Demo</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <!-- <link rel="shortcut icon" href="http://favicon.ico"> -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">

    <!--<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">-->

  
    

</head>
<body>

	<form id='alipay_submit' name='alipay_submit' action='https://openapi.alipay.com/gateway.do' method='POST'>
    <input type='hidden' name='app_id' value='2018092661533495'/>
    <input type='hidden' name='format' value='JSON'/>
    <input type='hidden' name='charset' value='utf-8'/>
    <input type='hidden' name='sign_type' value='RSA2'/>
    <input type='hidden' name='version' value='1.0'/>
    <input type='hidden' name='return_url' value='http://mifeng.gonghuiren.com/apis/alipayreturn'/>
    <input type='hidden' name='notify_url' value='http://mifeng.gonghuiren.com/apis/alipaynotify'/>
    <input type='hidden' name='timestamp' value='2020-02-28 12:29:41'/>
    <input type='hidden' name='biz_content' value='{"out_trade_no":"22_1582864181","total_amount":"0.01","subject":"30","product_code":"QUICK_WAP_WAY"}'/>
    <input type='hidden' name='method' value='alipay.trade.wap.pay'/>
    <input type='hidden' name='sign' value='l83nRSCW3jU3+VJBF4Ox8ge8Pa9j7MpvhpEdEOTNkels/PubCSzVpkVzMFj4qZBewfVpRKl/cpTTUQ9C8QK0HmqebO7pR822gaMSvkmok4X6b4MNERTsCJQJCxhvUqgqsY76o+Rp8lhU9AVcW019AJo1lxPdJJuaMBXAW/Y++1UJ/BWp/gEQUOzbnPhGjttznUr0i9I85DQ/u12RMQdcXom+tzrCH4xFWZmQ3GhlZW8O7Hs+v+guxgyDE4O4OR887L448TOaSJJZnvjnoCIvTHMLn63k6ockABUHQYL5p4ZRBXOKXLLQP/2TfJaZc90LAxsscxZwAmME2Fl565jQzQ=='/>
    <input type='submit' value='ok' style='display:none;'>
</form>


<input type="text" width="100%" height="50px" value="" id="ddd"/>
<button onclick="aa()">点击</button>

</body>
<script type="text/javascript" src="https://gitee.com/huaflower/ReadBook_CommonFile/raw/master/js/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
// 函数区域，函数放在“初始化区域的上面”
	// var mulu = [{PageNo:3},{PageNo:5}];
	// function test(vcindex){

 //    	var curchapter = 0;
 //    	if(mulu != null){

 //    	    if(mulu.length>1){//证明章数大于1章

 //    	        for(var i = 0;i<mulu.length;i++){ 
 //    	          var item;
 //    	          if(i == mulu.length-1){
 //    	            item = mulu[i];
 //    	          }else{
 //    	            item = mulu[i+1];
 //    	          }
 //    	          var preitem = mulu[i];
 //    	          console.log("当前："+vcindex);
 //    	          console.log("item:"+item.PageNo);
 //    	          console.log("preitem:"+preitem.PageNo);
 //    	          if(item != null && Number(vcindex) < Number(item.PageNo) && preitem != null){//判断是否为前一页的页码
 //    	            curchapter = preitem.PageNo;//当前页数的章
 //    	            console.log("前："+curchapter);
 //    	            return curchapter;
 //    	          }

 //    	          if(item != null && Number(vcindex) >= Number(item.PageNo) && preitem != null){//最后一章
 //    	            curchapter = item.PageNo;//当前页数的章
 //    	            console.log("后："+curchapter);
 //    	            return curchapter;
 //    	          }              

 //    	        }
 //    	    }else{
 //    	        curchapter = mulu[0].PageNo;
 //    	    }


 //    	}else{
 //    	    curchapter = 0;
 //    	}
 //    	return curchapter;


 //    }
 //    function aa(){
	// 	alert(test($("#ddd").val()));    	
 //    }
	


function aa(){
	//window.location.href='http://mifeng.gonghuiren.com/apis/alipay?paytype=alipay&subject=wechat&amount=30&userid=22';
	document.forms['alipay_submit'].submit();
}


</script>
</html>


    